﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using Utils.Common;

namespace ZK.BLL.Config
{

    [Serializable]
    public class VDJSetConfig : ConfigBase
    {

 
        private static VDJSetConfig config;
        public static VDJSetConfig GetConfig()
        {
            if (config == null)
            {
                config = ConfigHelper.BackSerialize(new VDJSetConfig());
                if (config == null)
                {
                    config = new VDJSetConfig();
                     
                }
            }
            return config;
        }


        //修改 
        public bool EditConfig()
        {
            try
            {
                ConfigHelper.Serialize(config);
                return true;
            }
            catch
            {
                return false;
            }
        }

        [Description("延时")]
        public int Delay { get; set; } = 0;
        public int Width { get; set; } = 20;
        public int Height { get; set; } = 5;
        public int CharacterGap { get; set; } = 0;
        public int FlipIndex { get; set; } = 0;
        public int OverthrowIndex { get; set; } = 0;

        public string FontHigh { get; set; } = "16-high";
 
    }



 
}